package org.projectwithoutname.ui.wizard.pages.composite;



import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.projectwithoutname.ui.util.ScreenToolkit;

public class NameComposite extends ScreenToolkit {

	private Label labelName = null;
	private Text textName = null;
	
	public NameComposite(Composite parent, int style) {
		super(parent, style);
		initialize();
	}

	private void initialize() {
		super.screenManager(4, 20, false);
		labelName = new Label(this, SWT.NONE);
		labelName.setText("Name:");
		super.putOnScreen(labelName, 42, 17);
		textName = new Text(this, SWT.BORDER);
		textName.setTextLimit(100);
		super.putOnScreen(textName, 150, 17);
		super.addLineSpace(1, 2, 0);
		setSize(new Point(300, 200));
	
	}
	
	public Text getTextName()
	{
		return textName;
	}

}
